<div class="title">Resultados</div>
<div style="background-color:#D6DADC;padding:3px;margin:1px;">
    <div>
        <?php
        mn_field('hselect', 'ED', 'viewtype', 1, "Por Data;Por Periodo#1;2", '', '', '" onchange="
		if(this.options[this.selectedIndex].value==1){
			document.getElementById(\'fin_results_view1\').style.display=\'block\';
			document.getElementById(\'fin_results_view2\').style.display=\'none\';
		} else {
			document.getElementById(\'fin_results_view1\').style.display=\'none\';
			document.getElementById(\'fin_results_view2\').style.display=\'block\';
		}" style="margin:5px'); ?>
    </div>
    <div id="fin_results_view1" style="position:absolute;top:28px;left:115px;display:block;width:250px">
        <?php
        mn_field('date', 'ED', 'ConsultDate', '', 'PRT_Results', 8, '', '" style="margin:5px');
        mn_field('checkbox', 'ED', 'view1_opt1', 1, '', '', '', '" style="padding:3px;margin:4px" checked disabled readonly="');
        echo 'Dia';
        mn_field('checkbox', 'ED', 'view1_opt2', 2, '', '', '', '" style="padding:3px;margin:4px" checked disabled readonly="');
        echo 'Mes';
        echo '</div><div NOWRAP id="fin_results_view2" style="position:absolute;top:28px;left:115px;display:none;width:250px"> De: ';
        mn_field('date', 'ED', 'Tini', '', 'PRT_Results', 8, '', '" style="margin:5px') . ' e ';
        mn_field('date', 'ED', 'Tend', '', 'PRT_Results', 8, '', '" style="margin:5px');
        echo '</div><div style="">';
        mn_field('button', 'ED', 'RPT_View', 'Consultar', '', '', '', '" style="width:100px;margin:5px;padding:3px" onclick="
		document.PRT_Results.action=\'_response/call.php?get=Financeiro/chart_results\';
		subform(\'PRT_Results\',\'RPT_FinResults\');');
        mn_field('hselect', 'ED', 'Channel', 1, "Qualquer;Canal de Saida;Canal de Entrada#0;1;2", '', '', '" style="margin:5px');
        MYTCONN();
        mn_field('select', 'ED', 'Countries', 1, "SELECT cvt_ID AS ID, cvt_Name AS NAME FROM hd_cashiertypes WHERE cvt_Type = 1", 'Todos', '', '" style="margin:5px');
        mn_field('hselect', 'ED', 'Origens', '', "Lojas;Origens;Tipo de Origens;Regioes#1;2;3;4", '', '', '" style="margin:3px');
        ?>
    </div>
</div>